package com.yfp.client.service;

import com.yfp.client.domain.MarCoupon;
import com.yfp.client.domain.MarCouponPack;

import java.util.List;
import java.util.Map;

/**
 * @Description: 礼包
 * 
 * @CreateDate: 2024/9/27 16:22
 * @UpdateUser: 
 * @UpdateDate: 2024/9/27 16:22
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
public interface MarCouponPackService {
    /**
     * 查询
     *
     * @param id
     * @return
     */
    MarCouponPack findById(Long id);

    /**
     * 查询礼包
     *
     * @param marketingId
     * @return
     */
    MarCouponPack findByMarketingId(Long marketingId);

    /**
     * 修改剩余数量
     *
     * @param id
     */
    void editSurplusCount(Long id);

    /**
     * 根据id集合查询礼包
     *
     * @param couponPackIdlist
     * @return
     */
    List<MarCouponPack> listByIds(List<Long> couponPackIdlist);

    /**
     * 根据礼包id集合查询优惠券
     *
     * @param couponPackIdlist
     * @return
     */
    Map<Long, List<MarCoupon>> listCouponByCouponPackIds(List<Long> couponPackIdlist);


    /**
     * 修改库存
     * @param id
     * @param surplusCount
     */
    void editSurplusCountById(Long id, Integer surplusCount);
}
